﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class Yonghu
    {
        //            1.定义一个用户类，存放用户的账号、用户名和密码属性；
        //   在用户类中定义一个方法输出当前用户对象的账号、用户名和密码的信息；然后在主方法调用输出；

        public int sum;
        public string name;
        public string shu;

        public int Sum
        {
            get { return this.sum; }
            set { this.sum = value; }
        }
        public string  Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string  Shu
        {
            get { return this.shu; }
            set { this.shu = value; }
        }
        public Yonghu(int sum,string name,string shu)
        {
            this.sum = sum;
            this.name = name;
            this.shu = shu;
         }
        public void Dami()
        {
            Console.WriteLine("账号是{0},用户名是{1},属性是{2}",this.sum,this.name,this.shu);
        }
    }
}
